import axios from '@/common/js/request'
import { handleRequestPromise, post} from '@/common/js/request'

/** 字典组别*/

export const saveOrUpdateBQjDmlx = (params) => {
    return axios.post('/DnDictionaryInfo/saveOrUpdateBQjDmlx',params)
}
export const findBQjDmlxByPage = (params) => {
    return axios.get('/DnDictionaryInfo/findBQjDmlxByPage',{params})
}
export const deleteBQjDmlxByXh = (params) => {
    return axios.post('/DnDictionaryInfo/deleteBQjDmlxByXh',params)
}
/** 字典条目 */
export const saveOrUpdateBQjDmx = (params) => {
    return axios.post('/DnDictionaryInfo/saveOrUpdateBQjDmx',params)
}
export const findSimpleBQjDmlx = (params) => {
    return axios.get('/DnDictionaryInfo/findSimpleBQjDmlx',{params})
}
export const findSimpleBQjDmx = (params) => {
    return axios.get('/DnDictionaryInfo/findSimpleBQjDmx',{params})
}
export const findBQjDmxByPage = (params) => {
    return axios.get('/DnDictionaryInfo/findBQjDmxByPage',{params})
}
export const deleteBQjDmxByXh = (params) => {
    return axios.post('/DnDictionaryInfo/deleteBQjDmxByXh',params)
}
export const findQJDmxByParentDmbm = (params) => {
    return axios.get('/DnDictionaryInfo/findQJDmxByParentDmbm',{params})
}
/** 字典厂商*/

export const findManufacturerHeader = (params) => {
    return axios.get('/DnDictionaryInfo/findManufacturerFieldHeader',{params})
}
export const findManufacturerByPage = (params) => {
    return axios.get('/DnDictionaryInfo/findManufacturerDicByPage',{params})
}

export const saveOrUpdateManu = (params) => {
    return axios.post('/DnDictionaryInfo/addManufacturerField',params)
}
export const saveOrUpdateDic = (params) => {
    return axios.post('/DnDictionaryInfo/updateManufacturerDic',params)
}